package com.huashi.dealer.modular.business.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huashi.dealer.commonEntity.StoreUserRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务员地区规则Mapper
 *
 * @author 谭陈强
 * @since 2025-08-07
 */
@Mapper
public interface StoreUserRuleMapper extends BaseMapper<StoreUserRule> {

    /**
     * 根据地区ID查询有权限的业务员ID列表
     *
     * @param provinceId 省份ID
     * @param cityId 城市ID
     * @return 业务员ID列表
     */
    List<Integer> selectStoreUserIdsByRegion(@Param("provinceId") Integer provinceId, 
                                           @Param("cityId") Integer cityId);
}
